import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom'
import Playbook from '@/pages/playbook'
import Scheduler from '@/pages/scheduler'

const Router = () => {
  return (
    <BrowserRouter>
      <Switch>
        <Route exact path="/">
          <Redirect to="playbook" />
        </Route>
        <Route path="/playbook" exact component={Playbook} />
        <Route path="/scheduler" exact component={Scheduler} />
      </Switch>
    </BrowserRouter>
  )
}
export default Router
